package close.kenny.shell.controller
{
	
	import close.kenny.shell.model.LoginProxy;
	import close.kenny.shell.model.vo.UserVO;
	import close.kenny.shell.view.LoginMediator;
	import close.kenny.shell.view.ShellMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	public class LoginCommand extends SimpleCommand implements ICommand
	{
		override public function execute(note:INotification):void
		{
			var loginProxy:LoginProxy=(facade.retrieveProxy( LoginProxy.NAME )) as LoginProxy;
			loginProxy.UserLogin(note.getBody() as UserVO);
		}
	}
}